package com.yu.demo.commons.enums;

/**
 * @Description: User业务返回枚举
 * @Author: WengYu
 */
public enum UserResultEnum implements ResultInterface {

    USER_INPUT_ERROR(100001,"保存失败，数据不能为空"),
    USER_PWD_NOT_EMPTY(100002, "密码不能为空"),
    USER_CODE_NOT_EMPTY(100003, "工号不能为空"),
    USER_ID_ERROR(100004,"ID有误"),
    USER_CODE_IS_EXIST(100003, "工号已存在");
    private Integer code;

    private String message;

    UserResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
